package com.siashan.toolkit.oss.qiniu.core;

import com.siashan.toolkit.oss.core.OssConfiguration;
import lombok.extern.slf4j.Slf4j;

/**
 * 七牛云oss配置文件
 *
 *
 * @author siashan
 * @since v1.0.1
 */
@Slf4j
public class QiniuOssConfiguration {

    private static OssConfiguration configuration = OssConfiguration.getInstance();

    /**
     * 获取域名配置
     *
     * @return 域名
     */
    public static String getDomain() {
        return configuration.getProperty("siashan.oss.qiniu.config.domain");
    }

    /**
     * 获取路径前缀
     *
     * @return 路径前缀
     */
    public static String getPrefix() {
        return configuration.getProperty("siashan.oss.qiniu.config.prefix");
    }

    /**
     * accessKey
     *
     * @return accessKey
     */
    public static String getAccessKey() {
        return configuration.getProperty("siashan.oss.qiniu.config.accessKey");
    }


    /**
     * secretKey
     *
     * @return secretKey
     */
    public static String getSecretKey() {

        return configuration.getProperty("siashan.oss.qiniu.config.secretKey");
    }

    /**
     * bucketName
     *
     * @return bucketName
     */
    public static String getBucketName() {
        return configuration.getProperty("siashan.oss.qiniu.config.bucketName");
    }


    /**
     * region
     *
     * @return region
     */
    public static String getRegion(){
        return configuration.getProperty("siashan.oss.qiniu.config.region");
    }

}
